-- GENERATED SPELL FOR [Wooly Rhino Bull] --


function spell0_25489(pUnit, Event) --@Rhino Charge,n/a--
pUnit:FullCastSpellOnTarget(50500,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25489', 642, 1)
end

function spell1_25489(pUnit, Event) --@Smack,n/a--
pUnit:FullCastSpellOnTarget(49974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25489', 654, 1)
end

function spell2_25489(pUnit, Event) --@Thick Hide,Self--
pUnit:FullCastSpellOnTarget(50502,pUnit)
pUnit:RegisterEvent('Sorts_25489', 596, 1)
end

function Sorts_25489(pUnit, Event)
local choix_sorts_25489 = math.random(0, 2)
if choix_sorts_25489 == 0 then
pUnit:RegisterEvent('spell0_25489', 1, 1)
end
if choix_sorts_25489 == 1 then
pUnit:RegisterEvent('spell1_25489', 1, 1)
end
if choix_sorts_25489 == 2 then
pUnit:RegisterEvent('spell2_25489', 1, 1)
end
end

function mob25489_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25489', math.random(1500, 3000), 1)
end

function mob25489_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25489_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25489_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25489, 1, 'mob25489_Action')
RegisterUnitEvent(25489, 2, 'mob25489_Leave')
RegisterUnitEvent(25489, 3, 'mob25489_Kill')
RegisterUnitEvent(25489, 4, 'mob25489_Die')
